/*    */ package cn.zzuisa.news.entity;
/*    */ 
/*    */ import java.util.List;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Page
/*    */ {
/*    */   private int pageNo;
/*    */   private int pageSize;
/*    */   private int totalCount;
/*    */   private List data;
/*    */   private int totalPage;
/*    */   
/*    */   public Page(int pageSize, int totalCount) {
/* 35 */     this.pageSize = pageSize;
/* 36 */     this.totalCount = totalCount;
/* 37 */     if (this.totalCount % this.pageSize == 0) {
/*    */       
/* 39 */       this.totalPage = this.totalCount / this.pageSize;
/*    */     } else {
/* 41 */       this.totalPage = this.totalCount / this.pageSize + 1;
/*    */     } 
/*    */   }
/*    */ 
/*    */   
/* 46 */   public List getData() { return this.data; }
/*    */ 
/*    */ 
/*    */   
/* 50 */   public void setData(List data) { this.data = data; }
/*    */ 
/*    */ 
/*    */   
/* 54 */   public int getPageNo() { return this.pageNo; }
/*    */ 
/*    */ 
/*    */   
/* 58 */   public void setPageNo(int pageNo) { this.pageNo = pageNo; }
/*    */ 
/*    */ 
/*    */   
/* 62 */   public int getPageSize() { return this.pageSize; }
/*    */ 
/*    */ 
/*    */   
/* 66 */   public int getTotalCount() { return this.totalCount; }
/*    */ 
/*    */ 
/*    */   
/* 70 */   public int getTotalPage() { return this.totalPage; }
/*    */ }


/* Location:              /Users/frank/Desktop/admin/WEB-INF/classes/!/cn/zzuisa/news/entity/Page.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */